@extends('default.layouts.personalPublic')
@section('title', '谁浏览了我')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/personal/resumeList.css')}}">
@endsection
@section('rightcon')
    <div class="right">

        <!--谁浏览了我-->
        <div class="jright">
            <div class="content">
                <div class="jobtitle">
                    <div class="tithead">
                        <ul>
                            <li class="active"><a href="{{url('personal/browse_resume')}}">谁浏览了我</a></li>
                            <li><a href="{{url('personal/buy_resume')}}">简历被下载</a></li>
                        </ul>
                    </div>
                </div>
                {{--\搜索内容--}}
                <div class="jobsearch">
                    <form name="Formso" id="Formso" action="{{url('personal/browse_resume')}}" method="post">
                        {{csrf_field()}}
                        <span><input name="keyword" class="keyword" id="keyword" placeholder="请输入公司名称" type="text"/></span>
                        <span><input name="submit" class="searpos" value="" type="submit"/></span>
                    </form>
                </div>
                {{--显示列表--}}
                <div class="pinfo">
                    <form name="thisForm" action="" method="post">
                        {{csrf_field()}}
                        <div class="listmenu">
                            <ul class="one">
                                <li class="p1"><input name="selected_id[]" class="checkboxs" value="" type="checkbox"/></li>
                                <li class="p2">公司名称</li>
                                <li class="p5" style="width:190px;">所属行业</li>
                                <li class="p3">最后登录时间</li>
                                <li class="p4">工作地点</li>
                                <li class="p6" style="width:120px;">浏览时间</li>
                            </ul>
                            <div class="information"><span>共<em>{{$browse_resume->total()}}</em>家企业浏览了我！</span></div>
                            {{--循环--}}
                            @if($browse_resume->count() > 0 )
                                @foreach($browse_resume as $v)
                                    <ul id="list{{$v->id}}">
                                        <li class="p1">
                                            <input name="selected_id[]" class="checkboxs" value="{{$v->id}}" type="checkbox"/>
                                        </li>
                                        <li class="p2" style="font-weight: bold;font-size:15px;"><a href="{{url('comabout_'.idEncryption($v->com_id).'.html')}}" target="_blank">{{$v->company_name}}</a></li>
                                        <li class="p5" style="width:190px;">{{$v->industry}}</li>
                                        <li class="p3">{{$v->last_login_time}}</li>
                                        <li class="p4">{{$v->region}}</li>
                                        <li class="p6" style="width:120px;">{{$v->created_at}}</li>
                                    </ul>
                                @endforeach
                            @else
                                <div class="nullcon">对不起！没有符合条件的记录！</div>
                            @endif
                            <ul class="one last">
                                <li class="p1" style="width:80px;">
                                    <input name="selectall" id="selectall" class="checkboxs" value="234" type="checkbox" onclick="CheckAll(this)"/>
                                    <label for="selectall">全选</label>
                                </li>
                            </ul>
                        </div>
                    </form>
                </div>
                {{--分页--}}
                <div class="page_list" style="width: 100%; float: left; margin-top:15px;">
                    {!! $browse_resume->appends($appends)->links() !!}
                </div>
            </div>
        </div>
    </div>
@endsection
@section('footerjs')
    @parent
    <script>
        $('#browse_resume').addClass('on');
    </script>
    <script type="text/javascript" src="{{asset('/default/js/personal/resumeList.js')}}"></script>
@endsection